﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KP_CommonLibrary.KP_Business;
using KEEPER_BRR_13dotNET.DataAccess;
using System.Data;

namespace KEEPER_BRR_13dotNET.BusinessLogic
{
    public class BL_KPDmNganh : KP_BLListBase
    {
        DAL_KPDmNganh DALDmNganh;
        public BL_KPDmNganh()
        {
            DALDmNganh = new DAL_KPDmNganh();
            DataAccess = DALDmNganh;
        }
        public DataTable SelectAll()
        {
            return DALDmNganh.SelectAll();
        }
        public DataTable SelectGiayToKemTheo(string maNganh)
        {
            DAL_KPGiayToKemTheo dal = new DAL_KPGiayToKemTheo();
            return dal.SelectChoNganh(maNganh);
        }

        public void Insert(DataRow row, DataTable tblGiayTo)
        {
            DALDmNganh.Insert(row, tblGiayTo);
        }
        public void Update(DataRow row, DataTable tblGiayTo)
        {
            DALDmNganh.Update(row, tblGiayTo);
        }
    }
}
